package com.reader.cms.entity.common;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import org.springframework.format.annotation.DateTimeFormat;
import com.baomidou.mybatisplus.annotations.TableName;

/**
*
* @@description 
* @author        gumenghao
* @date          2018-10-30
*/
@TableName("reader_content_tags_relation")
public class ReaderContentTagsRelation extends Model<ReaderContentTagsRelation> {

private static final long serialVersionUID = 1L;


/**
* ID
*/


@TableId(value="id", type= IdType.AUTO)
private Integer id;


/**
* 关联内容表的ID
*/

@TableField("doc_id")

private String docId;

/**
* 标签ID,通过标签可以找到对应内容分类
*/

@TableField("tag_id")

private Integer tagId;


@TableField("insert_dt")

@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date insertDt;


@TableField("insert_user_id")

private Integer insertUserId;


@TableField("updt_dt")

@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date updtDt;


@TableField("updt_user_id")

private Integer updtUserId;


public Integer getId() {
return id;
}

public void setId(Integer id) {
this.id = id;
}

public String getDocId() {
return docId;
}

public void setDocId(String docId) {
this.docId = docId;
}

public Integer getTagId() {
return tagId;
}

public void setTagId(Integer tagId) {
this.tagId = tagId;
}

public Date getInsertDt() {
return insertDt;
}

public void setInsertDt(Date insertDt) {
this.insertDt = insertDt;
}

public Integer getInsertUserId() {
return insertUserId;
}

public void setInsertUserId(Integer insertUserId) {
this.insertUserId = insertUserId;
}

public Date getUpdtDt() {
return updtDt;
}

public void setUpdtDt(Date updtDt) {
this.updtDt = updtDt;
}

public Integer getUpdtUserId() {
return updtUserId;
}

public void setUpdtUserId(Integer updtUserId) {
this.updtUserId = updtUserId;
}

@Override
protected Serializable pkVal() {
return this.id;
}

@Override
public String toString() {
return "ReaderContentTagsRelation{" +
	", id=" + id +
	", docId=" + docId +
	", tagId=" + tagId +
	", insertDt=" + insertDt +
	", insertUserId=" + insertUserId +
	", updtDt=" + updtDt +
	", updtUserId=" + updtUserId +
"}";
}
}